Skip to content

test(logging): add unit test for GetLogFilePath (#282) - #298

Open
shv-ng wants to merge 1 commit into
pashkov256:mainfrom
shv-ng:test/get-log-file-path
Open

test(logging): add unit test for GetLogFilePath (#282)#298
shv-ng wants to merge 1 commit into
pashkov256:mainfrom
shv-ng:test/get-log-file-path

Conversation

@shv-ng

@shv-ng shv-ng commented Feb 27, 2026

Copy link
Copy Markdown

Adds a unit test for GetLogFilePath() in internal/logging.

The test verifies that the returned path:

Ends with the expected log file name (path.LogFileName)

Has the expected application directory as its parent (path.AppDirName)

Assertions are performed using filepath helpers to ensure cross-platform compatibility and avoid OS-specific path assumptions.

If any additional assertions or changes are preferred, I’m happy to update the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant